package com.example.demo.config.bigDecimalPattern;

import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

@Retention(RetentionPolicy.RUNTIME)
@JacksonAnnotationsInside
@JsonSerialize(using = BigDecimalSerialize.class)
public @interface JacksonBigDecimal {
    /**
     * BigDecimal格式，格式标准请参考{@link java.text.DecimalFormat}
     */
    String pattern() default "";
    int scale() default 1;
}